//package com.kiki.stater.security.jwt;
//
//import com.kiki.stater.security.Admins;
//import org.springframework.security.core.userdetails.UserDetails;
//import org.springframework.security.core.userdetails.UserDetailsService;
//import org.springframework.security.core.userdetails.UsernameNotFoundException;
//import org.springframework.stereotype.Service;
//
///**
// * Created by mazeyi on 2021/1/21.
// */
//@Service
//public class JwtUserDetailServiceImpl implements UserDetailsService {
//
//
//    @Override
//    public UserDetails loadUserByUsername(String s) throws UsernameNotFoundException {
//        Admins admins = new Admins();
//
//        if(admins==null){
//            throw  new UsernameNotFoundException("No User found with UserName :");
//        }else{
//            return JwtUserFactory.create(admins);
//        }
//    }
//}